using System;
using Server.Mobiles;
using Server.Items;

namespace Server.Engines.Quests.Ninja
{
	public class EminosKatana : QuestItem
	{
		public override int LabelNumber{ get{ return 1063214; } } // Daimyo Emino's Katana

		[Constructable]
		public EminosKatana() : base( 0x13FF )
		{
			Weight = 1.0;
		}

		public EminosKatana( Serial serial ) : base( serial )
		{
		}

		public override bool CanDrop( PlayerMobile player )
		{
			EminosUndertakingQuest qs = player.Quest as EminosUndertakingQuest;

			if ( qs == null )
				return true;

			/*return !qs.IsObjectiveInProgress( typeof( ReturnSwordObjective ) )
				&& !qs.IsObjectiveInProgress( typeof( SlayHenchmenObjective ) )
				&& !qs.IsObjectiveInProgress( typeof( GiveEminoSwordObjective ) );*/
			return false;
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadEncodedInt();
		}
	}
}